package com.fulihui.systemcore.repository;

import java.util.List;

import com.fulihui.systemcore.condition.WechatConfigCondition;
import com.fulihui.systemcore.dto.WechatConfig;
import com.fulihui.systemcore.enums.EnvTypeEnum;
import com.fulihui.systemcore.request.wechat.WechatConfigSaveRequest;

/**
 * @author Created by Willard.Hu on 2016/6/2.
 */
public interface WechatConfigRepository {

    void create(WechatConfigSaveRequest request);

    boolean update(WechatConfigSaveRequest request);

    WechatConfig queryByPK(int id);

    WechatConfig querySingle(String configCode, EnvTypeEnum envType);

    List<WechatConfig> query(WechatConfigCondition condition);

}
